from PyHeap import BinHeap

class PriorityQueue(BinHeap):

    def __init__(self, List=[], Type='max'):
        BinHeap.__init__(self, HList=List, heaptype=Type)

    def setQueue(self, List):
        self.setList(List)

    def getQueue(self):
        return self.getList()

    def printQueue(self):
        return self.printList()

    def setQueueType(self, Type):
        self.setHeaptype(Type)

    def getQueueType(self):
        return self.getHeayptype

    def highest(self):
        return self.list[0]

    def push(self, element):
        self.heapPush(element)

    def pop(self):
        return self.heapPop()

    def isEmpty(self):
        return self.heapsize == 0
